﻿using System;
using Newtonsoft.Json;
namespace Esign.Net
{
    /// <summary>
    /// 基础配置文件类
    /// </summary>
    [Serializable]
    public class Config
    {
        /// <summary>
        /// 项目Secret(公共应用Secret),正式环境下贵司将拥有独立的应用Secret
        /// </summary>
        [JsonProperty("AppSecret")]
        public string AppSecret { get; set; }

        /// <summary>
        /// 项目ID
        /// </summary>
        [JsonProperty("AppId")]
        public string AppId { get; set; }

        /// <summary>
        /// 模拟环境 (正式环境 https://openapi.esign.cn 沙箱环境 https://smlopenapi.esign.cn)
        /// </summary>
        [JsonProperty("Host")]
        public string Host { get; set; }

        /// <summary>
        /// 回调地址 (例如 http://xxx.com:8711/esigncallback.aspx)
        /// </summary>
        [JsonProperty("RedirectUrl")]
        public string RedirectUrl { get; set; }

        /// <summary>
        /// 回调通知地址 (http://xxx.com:8711/EsignNotifyUrl.aspx)
        /// </summary>
        [JsonProperty("EsignNotifyUrl")]
        public string EsignNotifyUrl { get; set; }

    }
}
